import os

basedir = os.path.dirname(os.getcwd())
import sys

sys.path.append(basedir)
from src import transferUtils, MyExp

"""
通过将代码改为这种格式，发现python代码既可以在windows下运行
也能在linux上运行。
于是问题得以解决。以后写代码可以使用这种格式。
"""

if __name__ == "__main__":
    #
    #
    # print(os.getcwd())
    # argsNum = 3
    # myexp = MyExp.UDExp()
    # argvs = sys.argv
    #
    # try:
    #     myexp.ArgNumExp(argvs, argsNum)
    # finally:
    #     pass
    #
    # print("hello world")
    # with open(argvs[1], 'r') as f:
    #     transferUtils.toList(f, argvs[2], argvs[3])

    # import pandas as pd
    # p1 = pd.read_csv("./Datadir/1.csv",header=None)
    # p2 = pd.read_csv("./Datadir/2.csv",header=None)
    # p3 = pd.read_csv("./Datadir/3.csv",header=None)
    # print(transferUtils.mergeDFCOLS(p1[0],p2[0],p3[0]))
    parser = transferUtils.myArgParser()
    print(parser)

    myLogger = transferUtils.myLogger()
    myLogger.info(parser)
    import numpy as np
    x = np.array([1,3,4,5])
    b = np.array([3,4,5,5])
    x = x+b
    print(x/100)

